package com.springboot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//controller，service必须写在MyApplication类的同级目录或子目录，不然扫描不到
@RestController
public class MyController {
    @RequestMapping("/hello")
    public String index()
    {
        return "Hello World";
    }
}
